package com.xiaoxu.intranetweb.mybatisplusSzappdb.business.statistics;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.dao.UserInfoDao;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.vo.AggregateVo;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.mapper.CWeightSheetsMapper;
import com.xiaoxu.intranetweb.util.SzResult;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AggregateBu {
    @Autowired
    private CWeightSheetsMapper cWeightSheetsMapper;
    @Autowired
    private UserInfoDao userInfoDao;

    public SzResult aggregate(String token,String plantId) throws Exception {

        AggregateVo cWeightSheetsTotalBo = cWeightSheetsMapper.aggregate( plantId);
        return SzResult.success(cWeightSheetsTotalBo);
    }
}
